﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Platformer
{
    class Core
    {
        public static Core Instance = new Core();

        public List<BaseObject> objects;

        private Core() 
        {
            objects = new List<BaseObject>();
            
        }

        public void Init(Graphics e)
        {
            foreach (BaseObject obj in objects)
            {
                obj.Init(e);
            }
        }

        public void RefreshAll(System.Drawing.Graphics e)
        {
            foreach (BaseObject obj in objects)
            {
                obj.Refresh(e);
            }
        }
    }
}
